package com.hyou.sc.zuul.feign.service;

import java.io.Serializable;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.hyou.sc.zuul.dto.form.AuthForm;
import com.hyou.sc.zuul.feign.service.hystrix.AuthHystrixServiceImpl;
import com.hyou.springboot.base.ResponseMessage;

/**
 * 鉴权服务
 * 
 * @author FengChangshuo
 * @version 1.0.0 2018-04-20 15:14:31 初始创建
 */
@FeignClient(name = "${hyou.feign-client.name.sc-eureka-client-auth}" , fallback = AuthHystrixServiceImpl.class)
public interface AuthService {
    
    @PostMapping(path = "/auth", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    ResponseMessage<Serializable> auth(@RequestBody AuthForm form);
    
}
